package cn.gok.springsecuritydemo4.service;

import cn.gok.springsecuritydemo4.dao.PermissionDAO;
import cn.gok.springsecuritydemo4.entity.Permission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: chen fan
 * @since: 2022/11/22 16:19
 * @description:
 */
@Service
public class PermissionService {

    @Autowired
    PermissionDAO permissionDAO;


    public List<Permission> getAllPermissions(){
        return permissionDAO.selectList(null);
    }
}
